<template>
	<view class="my-userinfo-container">
		<!-- 头像和昵称区域 -->
		<view class="top-box">
			<image src="@/static/image/renwu.png" class="avatar"></image>
			<view class="nickname">徐涵</view>
		</view>

		<!-- 面板区域 -->
		<view class="panel-list">
			<!-- 第1个面板 -->
			<view class="panel">
				<view class="panel-body">
					<view class="panel-item">
						<image src="/static/image/mima.png" class="icon"></image>
						<text>修改密码</text>
					</view>
					<view class="panel-item">
						<image src="/static/image/touxiang.png" class="icon"></image>
						<text>修改头像</text>
					</view>
					<view class="panel-item">
						<image src="/static/image/wode.png" class="icon"></image>
						<text>个人信息</text>
					</view>
					<view class="panel-item">
						<image src="/static/image/youxiang.png" class="icon"></image>
						<text>绑定邮箱</text>
					</view>
				</view>
			</view>



			<!-- 第3个面板 -->
			<view class="panel">
				<view class="panel-list-item">
					<image src="/static/image/renwu1.png" class="icon"></image>
					<text style="flex:2;">我的任务</text>
					<uni-icons type="arrowright" size="15"></uni-icons>
				</view>
				<view class="panel-list-item">
					<image src="/static/image/tongzhi.png" class="icon"></image>
					<text style="flex:2;">通知详情</text>
					<uni-icons type="arrowright" size="15"></uni-icons>
				</view>
				<view class="panel-list-item">
					<image src="/static/image/xiaoxi.png" class="icon"></image>
					<text style="flex:2;">消息提醒</text>
					<uni-icons type="arrowright" size="15"></uni-icons>
				</view>
				<view class="panel-list-item">
					<image src="/static/image/qingli.png" class="icon"></image>
					<text style="flex:2;">清理缓存</text>
					<uni-icons type="arrowright" size="15"></uni-icons>
				</view>
				<view class="panel-list-item">
					<image src="/static/image/shouce.png" class="icon"></image>
					<text style="flex:2;">使用手册</text>
					<uni-icons type="arrowright" size="15"></uni-icons>
				</view>
				<view class="panel-list-item">
					<image src="/static/image/tuichu.png" class="icon"></image>
					<text style="flex:2;">退出</text>
					<uni-icons type="arrowright" size="15"></uni-icons>

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},

	}
</script>

<style lang="scss">
	.my-userinfo-container {
		height: 100%;
		background-color: #F4F4F4;

		.top-box {
			height: 400rpx;
			background-color: skyblue;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;

			.avatar {
				width: 90px;
				height: 90px;
				border-radius: 45px;
				border: 2px solid #FFF;
				box-shadow: 0 1px 5px black;
			}

			.nickname {
				font-size: 16px;
				color: #FFF;
				font-weight: bold;
				margin-top: 10px;
			}
		}
	}

	.panel-list {
		padding: 0 10px;
		position: relative;
		top: -10px;

		.panel {
			background-color: white;
			border-radius: 3px;
			margin-bottom: 8px;

			.panel-title {
				line-height: 45px;
				padding-left: 10px;
				font-size: 15px;
				border-bottom: 1px solid #F4F4F4;
			}

			.panel-body {
				display: flex;
				justify-content: space-around;

				.panel-item {
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: space-around;
					padding: 10px 0;
					font-size: 13px;

					.icon {
						width: 35px;
						height: 35px;
					}
				}
			}
		}
	}

	.panel-list-item {
		display: flex;
		justify-content: space-around;
		align-items: center;
		font-size: 15px;
		padding: 0 10px;
		line-height: 45px;
		border-bottom: 1rpx solid #666666;

		.icon {
			width: 35px;
			height: 35px;
			margin-right: 40rpx;
		}
	}
</style>
